package cn.dw.mm.mapper;

import java.util.List;
import java.util.Map;

import cn.dw.mm.domain.NewEightSelf;
import cn.dw.mm.domain.Selfexamination;

public interface SelfexaminationMapper {
	List<Integer> selectNewEightSelfsByEightFields(NewEightSelf newEightSelf);
	int deleteById(Integer id);
	int insert(Selfexamination selfexamination);
	int update(Selfexamination selfexamination);
	
	List<Map<String, Object> > countByDepartment();
	List<Map<String, Object> > countByDomain();
	List<Map<String, Object> > countByEightfield();
	Integer countByEightfieldIndex(Integer eightFieldsIndex);
	
	List<NewEightSelf> selectNewEightSelfsByUserId(Integer userId);
	List<NewEightSelf> selectNewEightSelfsByIds(List<Integer> ids);
	List<NewEightSelf> selectNewEightSelfsByUser(NewEightSelf newEightSelf);
}
